<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/meirong/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/meirong/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/meirong/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/meirong/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/meirong/Public/Member/js/global.js'></script>
<link href='/meirong/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/meirong/Public/Member/js/wechat.js'></script>
<script type='text/javascript' src='/meirong/Public/Member/js/massage.js'></script>
<script type="text/javascript" src="/meirong/Public/Member/js/operamasks-ui.min.js"></script>
<script type='text/javascript' src='/meirong/Public/Member/js/mall.js'></script>

<link href='/meirong/Public/Member/css/daterangepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/meirong/Public/Member/js/moment.min.js'></script>
<script type='text/javascript' src='/meirong/Public/Member/js/daterangepicker.js'></script>

<!-- <link href='/meirong/Public/Member/css/frame.css' rel='stylesheet' type='text/css' /> -->

<script type='text/javascript'>
var web_domain='/meirong';
var static_domain='/meirong';
var img_domain='/meirong';
var _PUBLIC_ = '/meirong/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

<script language="javascript">
      $(document).ready(massage_obj.order_refund); 
    //  var count= <?php echo ($count); ?>;
</script>

</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
					<li class="<?php if((ACTION_NAME) == "order"): ?>cur<?php endif; ?>"><a href="<?php echo U('Order/order');?>">订单列表</a></li>
					<li class="<?php if((ACTION_NAME) == "orderplace"): ?>cur<?php endif; ?>"><a href="<?php echo U('Order/orderPlace');?>">待处理订单列表</a></li>
					<li class="<?php if((ACTION_NAME) == "orderrefund"): ?>cur<?php endif; ?>"><a href="<?php echo U('Order/orderRefund');?>">待退款订单列表</a></li>
				</ul>
			</div>

		
		

			
	
			

	<div id="scratch" class="r_con_wrap">
		<form class="r_con_search_form" id="search_form">
			总订单数：<span id="totalnum"><?php echo ($count["totalnum"]); ?></span>&nbsp;&nbsp;&nbsp;&nbsp;
			(待退款：<?php echo ($count["refoundnonum"]); ?>&nbsp;&nbsp;已退款:<?php echo ($count["refoundnum"]); ?>)
			<!-- <div><input type="checkbox" id="auto_refer"><label for="auto_refer">自动刷新订单</label></div> -->
			<input type="hidden" id="do_action" value="<?php echo U('Order/orderSearch');?>">
		</form>
		
	
	
	<table class="r_con_table" border="0" cellpadding="5" cellspacing="0" id="order_list">
		<thead>
			<tr>
				<td width="3%">订单编号</td>
				<!-- <td width="10%">会员信息</td>
				<td width="7%">按摩项目</td>
				<td width="5%">按摩师</td>
				<td width="5%">联系人</td>
				<td width="8%">联系地址</td>
				<td width="7%">预约时间</td>
				<td width="5%">订单总价</td>
				<td width="5%">实际付款</td>
				<td width="5%">订单数量</td>
				<td width="5%">花费总时间</td> -->
				<td width="5%">支付状态</td>
				<td width="5%">订单状态</td>
				<td class="last" width="10%">操作</td>
			</tr>
		</thead>
		<tbody class="order_list"> 
		<?php if(is_array($orderList)): foreach($orderList as $key=>$vo): ?><tr isread="1" orderid="<?php echo ($vo["id"]); ?>">
			<td align="center"><?php echo ($vo["ordernumber"]); ?></td>
			<!-- <td align="center"><?php echo ($vo["nickname"]); ?>(<?php echo ($vo["tel"]); ?>)</td>
            <td align="center"><?php echo ($vo["massagename"]); ?></td>
            <td align="center"><?php echo ($vo["massagername"]); ?></td>
            <td align="center"><?php echo ($vo["linkman"]); ?></td>
           	<td align="center"><?php echo ($vo["building"]); ?></td> 
            <td align="center"><?php echo ($vo["servicetime"]); ?></td>
            <td align="center"><?php echo ($vo["oriprice"]); ?></td>
            <td align="center"><?php echo ($vo["totalprice"]); ?></td>
            <td align="center"><?php echo ($vo["ordernum"]); ?></td>
            <td align="center"><?php echo ($vo["totaltime"]); ?></td> -->
            <td align="center">
            <?php if($vo['pay'] == 0): ?><font color="red">未支付</font><?php else: ?>已支付<?php endif; ?>
            </td>
			<td align="center">
            <?php if($vo['status'] == 'placeorder'): ?>未接单
	            <?php elseif($vo['status'] == 'accepted'): ?>已接单
	            <?php elseif($vo['status'] == 'servicing'): ?>服务中
	            <?php elseif($vo['status'] == 'finished'): ?>已完成
	            <?php elseif($vo['status'] == 'usercancel'): ?>用户取消
	          	<?php elseif($vo['status'] == 'shopcancel'): ?>商家取消<?php endif; ?>
            <?php if($vo['isrefund'] == 1): ?>(已退款)<?php endif; ?>
            </td>
            <td mid="<?php echo ($vo["id"]); ?>" pay="<?php echo ($vo["pay"]); ?>">
            <?php if($vo['isrefund'] == 0): ?>[<a href="<?php echo U('order/refund',array('id'=>$vo['id']));?>">退款</a>]
            <?php else: ?>
            [已退款]<?php endif; ?>
            	<!-- <?php if($vo['isrefund'] == 0): ?>[<a href="<?php echo U('order/refund',array('id'=>$vo['id']));?>">退款</a>]<?php endif; ?> -->
          	</td>
        </tr><?php endforeach; endif; ?>	</tbody>
	</table>
</div>
<div id="turn_page">
		<?php echo ($page); ?>
	</div>

			
			</div>
			</div>
</body>
</html>